package org.fuys.coder.domain.audit.model.vo;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.audit.model.vo
 * @className: AuditTaskIdTypeVO
 * @author: WangJing
 * @description: 审核任务中的类型id 是用于标识此任务属于哪个类型(用户？)
 * @date: 2024/6/30 22:04
 * @version: 1.0
 */
public enum AuditTaskIdTypeVO {
    INFO(1){
        public String getDesc() {
            return "信息相关";
        }
    },
    SUBSTANCE(2){
        public String getDesc(){
            return "内容相关";
        }
    },
    IMAGE(3){
        public String getDesc(){
            return "图片相关";
        }
    };

    int index;

    AuditTaskIdTypeVO(int index) {
        this.index = index;
    }

    public int getIndex() {
        return index;
    }

    public String getDesc(){
        return null;
    }

    public static AuditTaskIdTypeVO getByIdx(int index) {
        return AuditTaskIdTypeVO.values()[index-1];
    }
}
